import Layout from '@/layout';
// // 由于懒加载页面太多的话会造成webpack热更新太慢，所以开发环境不使用懒加载，只有生产环境使用懒加载
const _import = require('@/utils/util.import');
const meta = { auth: true, menuId: '/customerdivision' };
export default {
  path: '/customerdivision',
  meta: {
    ...meta,
    icon: 'setting',
    title: '客户分户管理',
  },
  component: Layout,
  children: ((basePath) => [
    {
      path: `${basePath}/distribution/distributionsearch`,
      component: _import('customerdivision/distribution/distribution-search'),
      name: 'distribution-search',
      meta: {
        ...meta,
        title: '待分配客户查询',
      },
    },

    {
      path: `${basePath}/distribution/distributionenter`,
      component: _import('customerdivision/distribution/distribution-enter'),
      name: 'distribution-enter',
      meta: {
        ...meta,
        title: '客户分配录入',
      },
    },
    {
      path: `${basePath}/distribution/distributionconfirm`,
      component: _import('customerdivision/distribution/distribution-confirm'),
      name: 'distribution-confirm',
      meta: {
        ...meta,
        title: '客户分配确认',
      },
    },
    {
      path: `${basePath}/distribution/distributionlist`,
      component: _import('customerdivision/distribution/distribution-list'),
      name: 'distributionList',
      meta: {
        ...meta,
        title: '名单分配',
      },
    },
    {
      path: `${basePath}/distribution/distributionlistconfirm`,
      component: _import('customerdivision/distribution/distribution-list-confirm'),
      name: 'distribution-list-confirm',
      meta: {
        ...meta,
        title: '名单分配确认',
      },
    },
    {
      path: `${basePath}/distribution/distributionlistresult`,
      component: _import('customerdivision/distribution/distribution-list-result'),
      name: 'distribution-list-result',
      meta: {
        ...meta,
        title: '客户分配结果',
      },
    },
    {
      path: `${basePath}/distribution/distributionResult`,
      component: _import('customerdivision/distribution/distribution-result'),
      name: 'distributionResult',
      meta: {
        ...meta,
        title: '名单分配结果页',
      },
    },

    {
      path: `${basePath}/recycle/recyclesearch`,
      component: _import('customerdivision/recycle/recycle-search'),
      name: 'customerrecycle',
      meta: {
        ...meta,
        title: '客户调配及回收',
      },
    },
    {
      path: `${basePath}/recycle/customerrecycle`,
      component: _import('customerdivision/recycle/customerrecycle'),
      name: 'customerrecycle',
      meta: {
        ...meta,
        title: '客户回收',
      },
    },

    {
      path: `${basePath}/recycle/touchbloodrelation`,
      component: _import('customerdivision/recycle/touchbloodrelation'),
      name: 'touchbloodrelation',
      meta: {
        ...meta,
        title: '解除亲缘关系',
      },
    },

    {
      path: `${basePath}/recycle/assistenter`,
      component: _import('customerdivision/recycle/assist-enter'),
      name: 'assist-enter',
      meta: {
        ...meta,
        title: '协办人调配录入页',
      },
    },

    {
      path: `${basePath}/recycle/assistconfirm`,
      component: _import('customerdivision/recycle/assist-confirm'),
      name: 'assist-confirm',
      meta: {
        ...meta,
        title: '协办人调配确认页',
      },
    },

    {
      path: `${basePath}/recycle/sponsorconfirm`,
      component: _import('customerdivision/recycle/sponsor-confirm'),
      name: 'sponsor-confirm',
      meta: {
        ...meta,
        title: '主办人调配确认页',
      },
    },
    {
      path: `${basePath}/customerAllocaeRecycling`,
      name: 'customerAllocaeRecycling',
      component: _import('customerdivision/customerAllocaeRecycling'),
      meta: {
        ...meta,
        title: '客户调配及回收',
      },
    },
    {
      path: `${basePath}/customerAllocaeRecycling/removeRelation`,
      name: 'removeRelation',
      component: _import('customerdivision/customerAllocaeRecycling/removeRelation'),
      meta: {
        ...meta,
        title: '解除亲缘关系',
      },
    },
    {
      path: `${basePath}/customerAllocaeRecycling/customerRecover`,
      name: 'removeRelation',
      component: _import('customerdivision/customerAllocaeRecycling/customerRecover'),
      meta: {
        ...meta,
        title: '客户收回',
      },
    },
    {
      path: `${basePath}/customerAllocaeRecycling/sponsorAllocate`,
      name: 'removeRelation',
      component: _import('customerdivision/customerAllocaeRecycling/sponsorAllocate'),
      meta: {
        ...meta,
        title: '主办人调配',
      },
    },
    {
      path: `${basePath}/vipCustomers`,
      name: 'removeRelation',
      component: _import('customerdivision/vipCustomers'),
      meta: {
        ...meta,
        title: '贵宾客户未分配任务',
      },
    },
    {
      path: `${basePath}/vipCustomers/vipCustomersUnassigned`,
      name: 'removeRelation',
      component: _import('customerdivision/vipCustomers/vipCustomersUnassigned'),
      meta: {
        ...meta,
        title: '贵宾客户未分配任务',
      },
    },
    {
      path: `${basePath}/vipCustomers/vipCustomersInput`,
      name: 'removeRelation',
      component: _import('customerdivision/vipCustomers/vipCustomersInput'),
      meta: {
        ...meta,
        title: '贵宾客户分配录入',
      },
    },
    {
      path: `${basePath}/vipCustomers/vipCustomersConfirm`,
      name: 'removeRelation',
      component: _import('customerdivision/vipCustomers/vipCustomersConfirm'),
      meta: {
        ...meta,
        title: '贵宾客户分配录入',
      },
    },

    //用户管理-新增 end
  ])('/customerdivision'),
};
